/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:ViewAuthorUserPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewAuthorUserPK;

/**
 * persistent class for ViewAuthorUser view
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewAuthorUserPO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 用户表标识
     */
    private String userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 密码
     */
    private String pwd;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 等级
     */
    private Integer level;
    /**
     * 用户头像存放地址
     */
    private String portraitPath;
    /**
     * 创建时间
     */
    private java.util.Date createTime;
    /**
     * 最后修改时间
     */
    private java.util.Date endTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 用户状态
     */
    private String state;
    /**
     * 激活码
     */
    private String code;
    /**
     * 用户积分
     */
    private Integer integral;
    /**
     * 作者表标识
     */
    private String authorId;
    /**
     * 人物姓名
     */
    private String authorName;
    /**
     * 朝代
     */
    private String dynasty;
    /**
     * 人物描述，这里是一个以key:val拼接的字符串
     */
    private String description;
    /**
     * 人物画像地址连接
     */
    private String portraitLink;
    /**
     * 简介
     */
    private String synopsis;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getPortraitPath() {
        return portraitPath;
    }

    public void setPortraitPath(String portraitPath) {
        this.portraitPath = portraitPath;
    }

    public java.util.Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    public java.util.Date getEndTime() {
        return endTime;
    }

    public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPortraitLink() {
        return portraitLink;
    }

    public void setPortraitLink(String portraitLink) {
        this.portraitLink = portraitLink;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		userId == null     	
    		&&
    		userName == null     	
    		&&
    		loginName == null     	
    		&&
    		pwd == null     	
    		&&
    		email == null     	
    		&&
    		level == null     	
    		&&
    		portraitPath == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		state == null     	
    		&&
    		code == null     	
    		&&
    		integral == null     	
    		&&
    		authorId == null     	
    		&&
    		authorName == null     	
    		&&
    		dynasty == null     	
    		&&
    		description == null     	
    		&&
    		portraitLink == null     	
    		&&
    		synopsis == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	userId == null 
    		&&
    	userName == null 
    		&&
    	loginName == null 
    		&&
    	pwd == null 
    		&&
    	email == null 
    		&&
    	level == null 
    		&&
    	portraitPath == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	state == null 
    		&&
    	code == null 
    		&&
    	integral == null 
    		&&
    	authorId == null 
    		&&
    	authorName == null 
    		&&
    	dynasty == null 
    		&&
    	description == null 
    		&&
    	portraitLink == null 
    		&&
    	synopsis == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		userName == null     	
    		&&
    		loginName == null     	
    		&&
    		pwd == null     	
    		&&
    		email == null     	
    		&&
    		level == null     	
    		&&
    		portraitPath == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		state == null     	
    		&&
    		code == null     	
    		&&
    		integral == null     	
    		&&
    		authorId == null     	
    		&&
    		authorName == null     	
    		&&
    		dynasty == null     	
    		&&
    		description == null     	
    		&&
    		portraitLink == null     	
    		&&
    		synopsis == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	userName == null 
    		&&
    	loginName == null 
    		&&
    	pwd == null 
    		&&
    	email == null 
    		&&
    	level == null 
    		&&
    	portraitPath == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	state == null 
    		&&
    	code == null 
    		&&
    	integral == null 
    		&&
    	authorId == null 
    		&&
    	authorName == null 
    		&&
    	dynasty == null 
    		&&
    	description == null 
    		&&
    	portraitLink == null 
    		&&
    	synopsis == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewAuthorUserPK buildPK(){
    	ViewAuthorUserPK entityPK = new ViewAuthorUserPK();
    	
		entityPK.setUserId( userId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.userId != null){
		   	 	toString += (this.userId+",");
		   	 }
		  	 if(this.userName != null){
		   	 	toString += (this.userName+",");
		   	 }
		  	 if(this.loginName != null){
		   	 	toString += (this.loginName+",");
		   	 }
		  	 if(this.pwd != null){
		   	 	toString += (this.pwd+",");
		   	 }
		  	 if(this.email != null){
		   	 	toString += (this.email+",");
		   	 }
		  	 if(this.level != null){
		   	 	toString += (this.level+",");
		   	 }
		  	 if(this.portraitPath != null){
		   	 	toString += (this.portraitPath+",");
		   	 }
		  	 if(this.createTime != null){
		   	 	toString += (this.createTime+",");
		   	 }
		  	 if(this.endTime != null){
		   	 	toString += (this.endTime+",");
		   	 }
		  	 if(this.remark != null){
		   	 	toString += (this.remark+",");
		   	 }
		  	 if(this.state != null){
		   	 	toString += (this.state+",");
		   	 }
		  	 if(this.code != null){
		   	 	toString += (this.code+",");
		   	 }
		  	 if(this.integral != null){
		   	 	toString += (this.integral+",");
		   	 }
		  	 if(this.authorId != null){
		   	 	toString += (this.authorId+",");
		   	 }
		  	 if(this.authorName != null){
		   	 	toString += (this.authorName+",");
		   	 }
		  	 if(this.dynasty != null){
		   	 	toString += (this.dynasty+",");
		   	 }
		  	 if(this.description != null){
		   	 	toString += (this.description+",");
		   	 }
		  	 if(this.portraitLink != null){
		   	 	toString += (this.portraitLink+",");
		   	 }
		  	 if(this.synopsis != null){
		   	 	toString += (this.synopsis+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.userId != null){
		   		inputDescription += (this.userId+" : 用户表标识,");
		   }
		   if(this.userName != null){
		   		inputDescription += (this.userName+" : 用户名,");
		   }
		   if(this.loginName != null){
		   		inputDescription += (this.loginName+" : 登录名,");
		   }
		   if(this.pwd != null){
		   		inputDescription += (this.pwd+" : 密码,");
		   }
		   if(this.email != null){
		   		inputDescription += (this.email+" : 邮箱,");
		   }
		   if(this.level != null){
		   		inputDescription += (this.level+" : 等级,");
		   }
		   if(this.portraitPath != null){
		   		inputDescription += (this.portraitPath+" : 用户头像存放地址,");
		   }
		   if(this.createTime != null){
		   		inputDescription += (this.createTime+" : 创建时间,");
		   }
		   if(this.endTime != null){
		   		inputDescription += (this.endTime+" : 最后修改时间,");
		   }
		   if(this.remark != null){
		   		inputDescription += (this.remark+" : 备注,");
		   }
		   if(this.state != null){
		   		inputDescription += (this.state+" : 用户状态,");
		   }
		   if(this.code != null){
		   		inputDescription += (this.code+" : 激活码,");
		   }
		   if(this.integral != null){
		   		inputDescription += (this.integral+" : 用户积分,");
		   }
		   if(this.authorId != null){
		   		inputDescription += (this.authorId+" : 作者表标识,");
		   }
		   if(this.authorName != null){
		   		inputDescription += (this.authorName+" : 人物姓名,");
		   }
		   if(this.dynasty != null){
		   		inputDescription += (this.dynasty+" : 朝代,");
		   }
		   if(this.description != null){
		   		inputDescription += (this.description+" : 人物描述，这里是一个以key:val拼接的字符串,");
		   }
		   if(this.portraitLink != null){
		   		inputDescription += (this.portraitLink+" : 人物画像地址连接,");
		   }
		   if(this.synopsis != null){
		   		inputDescription += (this.synopsis+" : 简介,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
